package com.five.zhh.fiveinfive;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.net.InetAddress;
import java.net.UnknownHostException;

@SpringBootApplication
@Slf4j
@EnableScheduling
public class FiveInFiveApplication {

    public static void main(String[] args) throws UnknownHostException {
        ConfigurableEnvironment env = SpringApplication.run(FiveInFiveApplication.class, args).getEnvironment();
        System.out.printf("fiveinfive启动成功，主页网址: http://%s\n", InetAddress.getLocalHost().getHostAddress() + ":" + env.getProperty("server.port") + "/zhh/view/login");

    }

}
